home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 19.zip / BS1 part 19 / Lattice C disk 4.adf / Compiler_Headers / exec / alerts.h next >
C/C++ Source or Header  |  1988-10-25  |  7KB  |  203 lines

  1. #ifndef EXEC_ALERTS_H
  2. #define EXEC_ALERTS_H
  3. /*
  4. **    $Filename: exec/alerts.h $
  5. **    $Release: 1.3 $
  6. **
  7. **    
  8. **
  9. **    (C) Copyright 1985,1986,1987,1988 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. */
  12.  
  13. #define SF_ALERTWACK    (1<<1)    /* in ExecBase.SysFlag */
  14.  
  15.  
  16. /*********************************************************************
  17. *
  18. *  Format of the alert error number:
  19. *
  20. *    +-+-------------+----------------+--------------------------------+  
  21. *    |D|  SubSysId   |    General Error |       SubSystem Specific Error    |
  22. *    +-+-------------+----------------+--------------------------------+
  23. *
  24. *             D:     DeadEnd alert
  25. *          SubSysId:     indicates ROM subsystem number.
  26. *     General Error:     roughly indicates what the error was
  27. *    Specific Error:     indicates more detail
  28. **********************************************************************/
  29.  
  30. /*********************************************************************
  31. *
  32. *  General Dead-End Alerts
  33. *
  34. *********************************************************************/
  35.  
  36. /*------ alert types */
  37. #define AT_DeadEnd    0x80000000
  38. #define AT_Recovery    0x00000000
  39.  
  40. /*------ general purpose alert codes */
  41. #define AG_NoMemory    0x00010000
  42. #define AG_MakeLib    0x00020000
  43. #define AG_OpenLib    0x00030000
  44. #define AG_OpenDev    0x00040000
  45. #define AG_OpenRes    0x00050000
  46. #define AG_IOError    0x00060000
  47. #define AG_NoSignal    0x00070000
  48.  
  49. /*------ alert objects: */
  50. #define AO_ExecLib    0x00008001
  51. #define AO_GraphicsLib    0x00008002
  52. #define AO_LayersLib    0x00008003
  53. #define AO_Intuition    0x00008004
  54. #define AO_MathLib    0x00008005
  55. #define AO_CListLib    0x00008006
  56. #define AO_DOSLib    0x00008007
  57. #define AO_RAMLib    0x00008008
  58. #define AO_IconLib    0x00008009
  59. #define AO_ExpansionLib 0x0000800A
  60. #define AO_AudioDev    0x00008010
  61. #define AO_ConsoleDev    0x00008011
  62. #define AO_GamePortDev    0x00008012
  63. #define AO_KeyboardDev    0x00008013
  64. #define AO_TrackDiskDev 0x00008014
  65. #define AO_TimerDev    0x00008015
  66. #define AO_CIARsrc    0x00008020
  67. #define AO_DiskRsrc    0x00008021
  68. #define AO_MiscRsrc    0x00008022
  69. #define AO_BootStrap    0x00008030
  70. #define AO_Workbench    0x00008031
  71.  
  72.  
  73. /*********************************************************************
  74. *
  75. *   Specific Dead-End Alerts:
  76. *
  77. *********************************************************************/
  78.  
  79. /*------ exec.library */
  80. #define AN_ExecLib    0x01000000
  81. #define AN_ExcptVect    0x81000001    /* 68000 exception vector checksum */
  82. #define AN_BaseChkSum    0x81000002    /* execbase checksum */
  83. #define AN_LibChkSum    0x81000003    /* library checksum failure */
  84. #define AN_LibMem    0x81000004    /* no memory to make library */
  85. #define AN_MemCorrupt    0x81000005    /* corrupted memory list */
  86. #define AN_IntrMem    0x81000006    /* no memory for interrupt servers */
  87. #define AN_InitAPtr    0x81000007    /* InitStruct() of an APTR source */
  88. #define AN_SemCorrupt    0x81000008    /* a semaphore is in illegal state */
  89. #define AN_FreeTwice    0x81000009    /* freeing memory already freed */
  90. #define AN_BogusExcpt    0x8100000A    /* illegal 68k exception taken */
  91.  
  92. /*------ graphics.library */
  93. #define AN_GraphicsLib    0x02000000
  94. #define AN_GfxNoMem    0x82010000    /* graphics out of memory */
  95. #define AN_LongFrame    0x82010006    /* long frame, no memory */
  96. #define AN_ShortFrame    0x82010007    /* short frame, no memory */
  97. #define AN_TextTmpRas    0x02010009    /* text, no memory for TmpRas */
  98. #define AN_BltBitMap    0x8201000A    /* BltBitMap, no memory */
  99. #define AN_RegionMemory 0x8201000B    /* regions, memory not available */
  100. #define AN_MakeVPort    0x82010030    /* MakeVPort, no memory */
  101. #define AN_GfxNoLCM    0x82011234    /* emergency memory not available */    
  102.  
  103. /*------ layers.library */
  104. #define AN_LayersLib    0x03000000
  105. #define AN_LayersNoMem    0x83010000    /* layers out of memory */
  106.  
  107. /*------ intuition.library */
  108. #define AN_Intuition    0x04000000
  109. #define AN_GadgetType    0x84000001    /* unknown gadet type */
  110. #define AN_BadGadget    0x04000001    /* Recovery form of AN_GadgetType */
  111. #define AN_CreatePort    0x84010002    /* create port, no memory */
  112. #define AN_ItemAlloc    0x04010003    /* item plane alloc, no memory */
  113. #define AN_SubAlloc    0x04010004    /* sub alloc, no memory */
  114. #define AN_PlaneAlloc    0x84010005    /* plane alloc, no memory */
  115. #define AN_ItemBoxTop    0x84000006    /* item box top < RelZero */
  116. #define AN_OpenScreen    0x84010007    /* open screen, no memory */
  117. #define AN_OpenScrnRast 0x84010008    /* open screen, raster alloc, no memory */
  118. #define AN_SysScrnType    0x84000009    /* open sys screen, unknown type */
  119. #define AN_AddSWGadget    0x8401000A    /* add SW gadgets, no memory */
  120. #define AN_OpenWindow    0x8401000B    /* open window, no memory */
  121. #define AN_BadState    0x8400000C    /* Bad State Return entering Intuition */
  122. #define AN_BadMessage    0x8400000D    /* Bad Message received by IDCMP */
  123. #define AN_WeirdEcho    0x8400000E    /* Weird echo causing incomprehension */
  124. #define AN_NoConsole    0x8400000F    /* couldn't open the Console Device */
  125.  
  126.  
  127. /*------ math.library */
  128. #define AN_MathLib    0x05000000
  129.  
  130. /*------ clist.library */
  131. #define AN_CListLib    0x06000000
  132.  
  133. /*------ dos.library */
  134. #define AN_DOSLib    0x07000000
  135. #define AN_StartMem    0x07010001    /* no memory at startup */
  136. #define AN_EndTask    0x07000002    /* EndTask didn't */
  137. #define AN_QPktFail    0x07000003    /* Qpkt failure */
  138. #define AN_AsyncPkt    0x07000004    /* Unexpected packet received */
  139. #define AN_FreeVec    0x07000005    /* Freevec failed */
  140. #define AN_DiskBlkSeq    0x07000006    /* Disk block sequence error */
  141. #define AN_BitMap    0x07000007    /* Bitmap corrupt */
  142. #define AN_KeyFree    0x07000008    /* Key already free */
  143. #define AN_BadChkSum    0x07000009    /* Invalid checksum */
  144. #define AN_DiskError    0x0700000A    /* Disk Error */
  145. #define AN_KeyRange    0x0700000B    /* Key out of range */
  146. #define AN_BadOverlay    0x0700000C    /* Bad overlay */
  147.  
  148. /*------ ramlib.library */
  149. #define AN_RAMLib    0x08000000
  150. #define AN_BadSegList    0x08000001    /* no overlays in library seglists */
  151.  
  152. /*------ icon.library */
  153. #define AN_IconLib    0x09000000
  154.  
  155. /*------ expansion.library */
  156. #define AN_ExpansionLib 0x0A000000
  157. #define AN_BadExpansionFree    0x0A000001
  158.  
  159. /*------ audio.device */
  160. #define AN_AudioDev    0x10000000
  161.  
  162. /*------ console.device */
  163. #define AN_ConsoleDev    0x11000000
  164.  
  165. /*------ gameport.device */
  166. #define AN_GamePortDev    0x12000000
  167.  
  168. /*------ keyboard.device */
  169. #define AN_KeyboardDev    0x13000000
  170.  
  171. /*------ trackdisk.device */
  172. #define AN_TrackDiskDev 0x14000000
  173. #define AN_TDCalibSeek    0x14000001    /* calibrate: seek error */
  174. #define AN_TDDelay    0x14000002    /* delay: error on timer wait */
  175.  
  176. /*------ timer.device */
  177. #define AN_TimerDev    0x15000000
  178. #define AN_TMBadReq    0x15000001    /* bad request */
  179. #define AN_TMBadSupply    0x15000002    /* power supply does not supply ticks */
  180.  
  181. /*------ cia.resource */
  182. #define AN_CIARsrc    0x20000000
  183.  
  184. /*------ disk.resource */
  185. #define AN_DiskRsrc    0x21000000
  186. #define AN_DRHasDisk    0x21000001    /* get unit: already has disk */
  187. #define AN_DRIntNoAct    0x21000002    /* interrupt: no active unit */
  188.  
  189. /*------ misc.resource */
  190. #define AN_MiscRsrc    0x22000000
  191.  
  192. /*------ bootstrap */
  193. #define AN_BootStrap    0x30000000
  194. #define AN_BootError    0x30000001    /* boot code returned an error */
  195.  
  196. /*------ Workbench */
  197. #define AN_Workbench    0x31000000
  198.  
  199. /*------ DiskCopy */
  200. #define AN_DiskCopy    0x32000000
  201.  
  202. #endif    /* EXEC_ALERTS_H */
  203.